<template>
  <div name="里斯" class="box1">
    <h1>Hello Vue</h1>

    <p>{{ $attrs }}</p>
  </div>
</template>

<script>
export default {
  // 禁用非prop属性的继承
  inheritAttrs: false,

  props: ["sex"],

  mounted() {
    console.log(this.$attrs);
  },
};
</script>
